package org.langqiao.datatype.eightbasicdata;

public class MaxVariablesDemo {

	public static void main(String args[]) {
		// 整型数
		byte largestByte = Byte.MAX_VALUE;
		short largestShort = Short.MAX_VALUE;
		int largestInteger = Integer.MAX_VALUE;
		long largestLong = Long.MAX_VALUE;
		// 实型数
		float largestFloat = Float.MAX_VALUE;
		double largestDouble = Double.MAX_VALUE;
		// 其它的数据类型：字符型和布尔型等等
		char aChar = 'S';
		boolean aBoolean = true;
		// 将它们显示出来
		System.out.println("The largest byte value is " + largestByte);
		System.out.println("The largest short value is " + largestShort);
		System.out.println("The largest integer value is " + largestInteger);
		System.out.println("The largest long value is " + largestLong);
		System.out.println("The largest float value is " + largestFloat);
		System.out.println("The largest double value is " + largestDouble);
	
		if (Character.isUpperCase(aChar)) {
			System.out.println("The character " + aChar + " is upper case.");
		} else {
			System.out.println("The character " + aChar + " is lower case.");
		}
		System.out.println("The value of aBoolean is " + aBoolean);
	}

}
